<?php

include("../inc/dbconnect.php");
include("../inc/inc_configuration.php");

$q="SELECT gid FROM $tbl_users WHERE id=$jUser";
					$qe=mysql_query($q);
					$qeo=mysql_fetch_object($qe);
					
					$gid=$qeo->gid;
					
					if ($gid!=$admingroup)
					{
						echo "Du bist kein Admin!";
						break;
					}

$name=$_POST["nameVerein"];
$bewertung=$_POST["bewertung"];

$eintrag = "INSERT INTO $tbl_teams (name, rating) VALUES ('$name', '$bewertung')";
$eintragen = mysql_query($eintrag);
?>